package flower.com.a600_xm;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

import flower.com.a600_xm.ui.NewVersionDialogFragment;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        NewVersionDialogFragment newVersionDialogFragment = NewVersionDialogFragment.newInstance("11", "22");
        newVersionDialogFragment.show(getSupportFragmentManager(), "111");
//        newVersionDialogFragment.setOnUpdateListener(new NewVersionDialogFragment.OnUpdateListener() {
//            @Override
//            public void onUpdate(String name, String sex, String age, String Medical_history, String tele) {
//                Log.e("1111", "xx" + name + sex);
//                Toast.makeText(Result_Activity.this, "姓名：" + name + "," + "性别："
//                        + sex + "," + "年龄：" + age + "," + "病史：" + Medical_history + "," + "电话：" + tele, Toast.LENGTH_SHORT).show();
//            }
//        });
    }
}
